package com.cq.hd.admin.service;

import com.cq.hd.admin.dto.AdminUserDto;
import com.cq.hd.admin.po.TbAdminUserPo;
import com.cq.hd.admin.vo.AdminUserDetailVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cq.hd.common.pagination.Page;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mYunYu
 * @since 2021-10-28
 */
public interface TbAdminUserService extends IService<TbAdminUserPo> {

    TbAdminUserPo getUserByUserName(String userName);

    Page<AdminUserDetailVo> getAdminUserList(String userName, String userRole, Integer pageNum, Integer pageSize);

    void addAdminUser(AdminUserDto adminUserDto);

    void deleteAdminUser(Integer id);

    int updateAdminUserById(AdminUserDto adminUserDto);

    int updateAvatarById(String avatar, Integer id);

    TbAdminUserPo getUserByMobile(String mobile);
}
